Optimal. Leaf size=93 \[ \frac{(a C+A b) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{2 a^{3/2} b^{3/2}}-\frac{a \left (B-\frac{a D}{b}\right )-x (A b-a C)}{2 a b \left (a+b x^2\right )}+\frac{D \log \left (a+b x^2\right )}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0654198, antiderivative size = 93, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {1814, 635, 205, 260} \[ \frac{(a C+A b) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{2 a^{3/2} b^{3/2}}-\frac{a \left (B-\frac{a D}{b}\right )-x (A b-a C)}{2 a b \left (a+b x^2\right )}+\frac{D \log \left (a+b x^2\right )}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1814
Rule 635
Rule 205
Rule 260
Rubi steps
\begin{align*} \int \frac{A+B x+C x^2+D x^3}{\left (a+b x^2\right )^2} \, dx &=-\frac{a \left (B-\frac{a D}{b}\right )-(A b-a C) x}{2 a b \left (a+b x^2\right )}-\frac{\int \frac{-\frac{A b+a C}{b}-\frac{2 a D x}{b}}{a+b x^2} \, dx}{2 a}\\ &=-\frac{a \left (B-\frac{a D}{b}\right )-(A b-a C) x}{2 a b \left (a+b x^2\right )}+\frac{(A b+a C) \int \frac{1}{a+b x^2} \, dx}{2 a b}+\frac{D \int \frac{x}{a+b x^2} \, dx}{b}\\ &=-\frac{a \left (B-\frac{a D}{b}\right )-(A b-a C) x}{2 a b \left (a+b x^2\right )}+\frac{(A b+a C) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{2 a^{3/2} b^{3/2}}+\frac{D \log \left (a+b x^2\right )}{2 b^2}\\ \end{align*}
Mathematica [A] time = 0.0812819, size = 83, normalized size = 0.89 \[ \frac{\frac{a^2 D-a b (B+C x)+A b^2 x}{a \left (a+b x^2\right )}+\frac{\sqrt{b} (a C+A b) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a^{3/2}}+D \log \left (a+b x^2\right )}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 97, normalized size = 1. \begin{align*}{\frac{1}{b{x}^{2}+a} \left ({\frac{ \left ( Ab-aC \right ) x}{2\,ab}}-{\frac{Bb-aD}{2\,{b}^{2}}} \right ) }+{\frac{D\ln \left ( b{x}^{2}+a \right ) }{2\,{b}^{2}}}+{\frac{A}{2\,a}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{C}{2\,b}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 2.15369, size = 233, normalized size = 2.51 \begin{align*} \left (\frac{D}{2 b^{2}} - \frac{\sqrt{- a^{3} b^{5}} \left (A b + C a\right )}{4 a^{3} b^{4}}\right ) \log{\left (x + \frac{- 2 D a^{2} + 4 a^{2} b^{2} \left (\frac{D}{2 b^{2}} - \frac{\sqrt{- a^{3} b^{5}} \left (A b + C a\right )}{4 a^{3} b^{4}}\right )}{A b^{2} + C a b} \right )} + \left (\frac{D}{2 b^{2}} + \frac{\sqrt{- a^{3} b^{5}} \left (A b + C a\right )}{4 a^{3} b^{4}}\right ) \log{\left (x + \frac{- 2 D a^{2} + 4 a^{2} b^{2} \left (\frac{D}{2 b^{2}} + \frac{\sqrt{- a^{3} b^{5}} \left (A b + C a\right )}{4 a^{3} b^{4}}\right )}{A b^{2} + C a b} \right )} - \frac{B a b - D a^{2} + x \left (- A b^{2} + C a b\right )}{2 a^{2} b^{2} + 2 a b^{3} x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17426, size = 119, normalized size = 1.28 \begin{align*} \frac{D \log \left (b x^{2} + a\right )}{2 \, b^{2}} + \frac{{\left (C a + A b\right )} \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{2 \, \sqrt{a b} a b} - \frac{{\left (C a - A b\right )} x - \frac{D a^{2} - B a b}{b}}{2 \,{\left (b x^{2} + a\right )} a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]